package com.smooth.dao.gen;

import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;

import com.smooth.dao.gen.bean.BizGentest;
import com.smooth.dao.gen.bean.BizGentestExample;

public interface BizGentestMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_gentest
     */
    @SelectProvider(type=BizGentestSqlProvider.class, method="countByExample")
    long countByExample(BizGentestExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_gentest
     */
    @DeleteProvider(type=BizGentestSqlProvider.class, method="deleteByExample")
    int deleteByExample(BizGentestExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_gentest
     */
    @Delete({
        "delete from biz_gentest",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    int deleteByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_gentest
     */
    @Insert({
        "insert into biz_gentest (id, tel_no, ",
        "code, sms_type, ",
        "req_str, rsp_str, ",
        "create_by, create_date, ",
        "update_by, update_date, ",
        "del_flag)",
        "values (#{id,jdbcType=VARCHAR}, #{telNo,jdbcType=VARCHAR}, ",
        "#{code,jdbcType=VARCHAR}, #{smsType,jdbcType=SMALLINT}, ",
        "#{reqStr,jdbcType=LONGVARCHAR}, #{rspStr,jdbcType=LONGVARCHAR}, ",
        "#{createBy,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP}, ",
        "#{updateBy,jdbcType=VARCHAR}, #{updateDate,jdbcType=TIMESTAMP}, ",
        "#{delFlag,jdbcType=SMALLINT})"
    })
    int insert(BizGentest record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_gentest
     */
    @InsertProvider(type=BizGentestSqlProvider.class, method="insertSelective")
    int insertSelective(BizGentest record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_gentest
     */
    @SelectProvider(type=BizGentestSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="tel_no", property="telNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="code", property="code", jdbcType=JdbcType.VARCHAR),
        @Result(column="sms_type", property="smsType", jdbcType=JdbcType.SMALLINT),
        @Result(column="req_str", property="reqStr", jdbcType=JdbcType.LONGVARCHAR),
        @Result(column="rsp_str", property="rspStr", jdbcType=JdbcType.LONGVARCHAR),
        @Result(column="create_by", property="createBy", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_date", property="createDate", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_by", property="updateBy", jdbcType=JdbcType.VARCHAR),
        @Result(column="update_date", property="updateDate", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="del_flag", property="delFlag", jdbcType=JdbcType.SMALLINT)
    })
    List<BizGentest> selectByExample(BizGentestExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_gentest
     */
    @Select({
        "select",
        "id, tel_no, code, sms_type, req_str, rsp_str, create_by, create_date, update_by, ",
        "update_date, del_flag",
        "from biz_gentest",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="tel_no", property="telNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="code", property="code", jdbcType=JdbcType.VARCHAR),
        @Result(column="sms_type", property="smsType", jdbcType=JdbcType.SMALLINT),
        @Result(column="req_str", property="reqStr", jdbcType=JdbcType.LONGVARCHAR),
        @Result(column="rsp_str", property="rspStr", jdbcType=JdbcType.LONGVARCHAR),
        @Result(column="create_by", property="createBy", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_date", property="createDate", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_by", property="updateBy", jdbcType=JdbcType.VARCHAR),
        @Result(column="update_date", property="updateDate", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="del_flag", property="delFlag", jdbcType=JdbcType.SMALLINT)
    })
    BizGentest selectByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_gentest
     */
    @UpdateProvider(type=BizGentestSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") BizGentest record, @Param("example") BizGentestExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_gentest
     */
    @UpdateProvider(type=BizGentestSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") BizGentest record, @Param("example") BizGentestExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_gentest
     */
    @UpdateProvider(type=BizGentestSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(BizGentest record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_gentest
     */
    @Update({
        "update biz_gentest",
        "set tel_no = #{telNo,jdbcType=VARCHAR},",
          "code = #{code,jdbcType=VARCHAR},",
          "sms_type = #{smsType,jdbcType=SMALLINT},",
          "req_str = #{reqStr,jdbcType=LONGVARCHAR},",
          "rsp_str = #{rspStr,jdbcType=LONGVARCHAR},",
          "create_by = #{createBy,jdbcType=VARCHAR},",
          "create_date = #{createDate,jdbcType=TIMESTAMP},",
          "update_by = #{updateBy,jdbcType=VARCHAR},",
          "update_date = #{updateDate,jdbcType=TIMESTAMP},",
          "del_flag = #{delFlag,jdbcType=SMALLINT}",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKey(BizGentest record);
}